constraints

val constraints: (UIView, UIView) -> List<NSLayoutConstraint>?

Parameters

constraints

Optional function that takes the child and container view and returns the constraints to set. If left empty, the child will default to match the container view size